﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglib.jsp"%>
<%@page contentType="text/html;charset=UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>注册页面</title>
<link href="css/global.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.4.4.min.js"></script>
	<script>

		//do some initialization here
		$(function(){
			//alert("a");
			$('#top_nav_login')[0].className = 'current';
		});


		function setbg_p(e, color, reminder)
		{

			if (e.value == "")
			{
				e.value = reminder;
				e.onfocus = function(){clear_input_p(e, '#e5fff3')};
			}
			return true;
		}

		function clear_input_p(e, color) 
		{ 
		    e.value = ""; 
		    //e.style.background=color;
		    e.onfocus = null; 
		} 

		

		function check_input_p(e, color) 
		{ 
		    if(e.value == "")
		    {
		    	e.onfocus = function(){clear_input_p(e, '#e5fff3')};
		    } 
		    else
		    {
		        e.onfocus = null; 
		    }
		    
		} 
	</script>
<!--[if IE 6]><script type="text/javascript" src="iepng.js"></script><![endif]-->
<script type="text/javascript">
   EvPNG.fix('div, ul, img, li, input,form,a,');  //EvPNG.fix('包含透明PNG图片的标签'); 多个标签之间用英文逗号隔开。
</script>
</head>

<body>
<div class="mianbody">
 <jsp:include page="top.jsp" />  
<!--页面中部-->
 <div class="zhuce_ct">
 <div class="zhuce_form">
 <form action="register.do" method="post">
 <table width="100%" border="0">
 <tr>
 	<td align="center" colspan="3"><b><font color="red" >${errorMsg}</font></b></td>
 </tr>
  <tr>
  <c:choose>
  <c:when test="${empty name}">
    <td height="45px"><input name="name" type="text" value="姓名：" 
    			onfocus="clear_input_p(this,'#e5fff3');"
		    	onblur="setbg_p(this,'white', '姓名：');"
		    	onchange="check_input_p(this, 'white');"
      class="zcinput"/></td>
  </c:when>
  <c:otherwise>
 	 <td height="45px"><input name="name" type="text" value="${name}" 
		    	onblur="setbg_p(this,'white', '姓名：');"
		    	onchange="check_input_p(this, 'white');"
      class="zcinput"/></td>
  </c:otherwise>
  </c:choose>
    <td>&nbsp;</td>
   <c:choose>
  <c:when test="${empty mobile}">
   <td><input name="mobile" type="text" value="手机号："
    	onfocus="clear_input_p(this,'#e5fff3');"
		    	onblur="setbg_p(this,'white', '手机号：');"
		    	onchange="check_input_p(this, 'white');"
     class="zcinput" /></td>
  </c:when>
  <c:otherwise>
 	<td><input name="mobile" type="text" value="${mobile}"
		    	onblur="setbg_p(this,'white', '手机号：');"
		    	onchange="check_input_p(this, 'white');"
     class="zcinput" /></td>
  </c:otherwise>
  </c:choose>
    
  </tr>
  
  
  
  
  <tr>
  	<c:choose>
	  <c:when test="${empty email}">
	   <td><input name="email" type="text"  value="邮　箱：" 
    	onfocus="clear_input_p(this,'#e5fff3');"
		    	onblur="setbg_p(this,'white', '邮　箱：');"
		    	onchange="check_input_p(this, 'white');"
     class="zcinput"/></td>
	  </c:when>
	  <c:otherwise>
	 	 <td><input name="email" type="text"  value="${email}" 
		    	onblur="setbg_p(this,'white', '邮　箱：');"
		    	onchange="check_input_p(this, 'white');"
     class="zcinput"/></td>
	  </c:otherwise>
	  </c:choose>
    
    <td>&nbsp;</td>
    <c:choose>
	  <c:when test="${empty age}">
	   <td><input name="age" type="text" value="年龄：" 
    onfocus="clear_input_p(this,'#e5fff3');"
		    	onblur="setbg_p(this,'white', '年龄：');"
		    	onchange="check_input_p(this, 'white');"
     class="zcinput"/></td>
	  </c:when>
	  <c:otherwise>
	 	 <td><input name="age" type="text" value="${age}" 
		    	onblur="setbg_p(this,'white', '年龄：');"
		    	onchange="check_input_p(this, 'white');"
     class="zcinput"/></td>
	  </c:otherwise>
	  </c:choose>
    
  </tr>
  <tr>
    <td colspan="3" height="80px" align="center">
    <input name="submit" type="image" style="width:115px; height:41px; border:0px;"  src="images/queding.jpg" />
    </td>
  </tr>
</table>

 </form>
 </div>
 </div> 
 <div class="liucheng"><img src="images/liucheng.jpg" /></div>
 <div class="zhuce_pic"><img src="images/zhuce.png" /></div>
<!----> 
 <div style="clear:both"></div>
  <jsp:include page="bottom.jsp" />
</div>
</div>
</body>
</html>
